﻿@{
    Layout = null;
}
<!DOCTYPE html> 
<html>
    <head>
        <title>@Language.Get("审核")</title>
        @Html.Partial("commonMeta")
        <link rel="stylesheet" href="~/css/product.css?v=@Wholesaler.Common.Version.Get" />
        <link href="~/Css/stock.css?v=@Wholesaler.Common.Version.Get" rel="stylesheet" />
        <link href="~/Css/teamorder.css?v=@Wholesaler.Common.Version.Get" rel="stylesheet"/>
    </head>
    <body>
    	<div class="views">
			<div class="view view-main">
				<div class="navbar">
					<div class="navbar-inner">
			            <header id="common_header">
			                <div class="menu_icon_box" id="show_menu_btn">
			                	<em class="menu-btn"></em>
			                </div>
			                <div class="menu_icon_box" id="hide_menu_btn">
			                	<em class="colse-nav-btn"></em>
			                </div>
			                <h2>@Language.Get("审核")</h2>
			            </header>
            			@Html.Partial("teammenu")
            			<div class="subnavbar" style="display: block;padding: 0;height:auto;background-color: #fff;padding-top: 5px;">
            				<div>
            					<ul class="clearfix" id="navMenu">
									<li><a data-href="/team/apply" href="#">@Language.Get("申请")</a>
								    <li><a data-href="/team/flow" href="#" class="active">@Language.Get("审核")</a></li>
								    <li><a data-href="/team/bank" href="#">@Language.Get("账户")</a></li>
								    <li><a data-href="/team/pay" href="#">@Language.Get("消费")</a></li>
								</ul>
            				</div>
	            			<div class="list_status clearfix" id="_sysStatus">
			                   	<ul>
				                   <li data-value="" title="@Language.Get("全部")"  class="add_blue">@Language.Get("全部") (<b id="total_charge1">0</b>)</li>
				                   <li data-value="0" title="@Language.Get("待审核")">@Language.Get("待审核") (<b id="_charge0">0</b>)</li>
				                   <li data-value="1" title="@Language.Get("已审核")">@Language.Get("已审核") (<b id="_charge1">0</b>)</li>
				                   <li data-value="2" title="@Language.Get("已复核")">@Language.Get("已复核") (<b id="_charge2">0</b>)</li>
				                   <li data-value="-1" title="@Language.Get("已作废")">@Language.Get("已作废") (<b id="_charge">0</b>)</li>
			                  	</ul>
			                  	<span id="show_term_btn" class="add_blue" style="clear: both;">@Language.Get("筛选")</span>
			                  	<!--添加a标签 8-3 -->
                				<span class="add_blue add_btn"><a class="add" href="javascript:void(0)" onclick="add_box()" title="@Language.Get("申请收支")">@Language.Get("申请")</a></span>
			               </div>

			                <table class="product_table" id="product_table_fixed" style="padding-top: 3px;">
		                        <thead>
		                            <tr>
                                        <th style='width:8%' class="check_head_box"></th>
	                                        <th class='nickname' style='width:15%'>@Language.Get("账户")</th>
	                                        <th style='width:12%' title="@Language.Get("支出金额")">@Language.Get("支出")</th>
	                                        <th style='width:12%' title="@Language.Get("实收金额")">@Language.Get("收入")</th>
	                                        <th style='width:10%'>@Language.Get("交易类型")<i class="sort sort_normal" data-sort="Type"></i></th>
	                                        <th style='width:10%'>@Language.Get("公司")</th>
	                            			<th style='width:10%'>@Language.Get("状态")<i class="sort sort_normal" data-sort="Status"></i></th>
	                            			<th style='width:10%'>@Language.Get("详情")</th>
	                                        <th style='width:13%'>@Language.Get("操作")</th>
                                    </tr>
		                        </thead>

		                        <tbody id="stock_body_hide">

		                        </tbody>
		                    </table>
			            </div>
					</div>
			    </div>
				<div class="pages navbar-through toolbar-through">
		          	<div data-page="index" class="page">
				        <!--内容区start-->
						<div class="page-content" id="app_no_header">
					         @* 库存列表start *@
			                <div id="inventory" style="background-color: #fff;">
		                        <table class="product_table table_hide" id="product_table">
	                                <thead>
			                            <tr>
	                                        <th style='width:8%' class="check_head_box"></th>
	                                        <th class='nickname' style='width:15%'>@Language.Get("账户")</th>
	                                        <th style='width:12%' title="@Language.Get("支出金额")">@Language.Get("支出")</th>
	                                        <th style='width:12%' title="@Language.Get("实收金额")">@Language.Get("收入")</th>
	                                        <th style='width:10%'>@Language.Get("交易类型")<i class="sort sort_normal" data-sort="Type"></i></th>
	                                        <th style='width:10%'>@Language.Get("公司")</th>
	                            			<th style='width:10%'>@Language.Get("状态")<i class="sort sort_normal" data-sort="Status"></i></th>
	                            			<th style='width:10%'>@Language.Get("详情")</th>
	                                        <th style='width:13%'>@Language.Get("操作")</th>
	                                    </tr>
		                           </thead>
	                                <tbody id="stock_body">

	                                </tbody>
	                            </table>
		                   </div>
			                <p class="totalcount">@Language.Get("显示前500条")<a class="diasType"></a></p>
        				</div>
        				<!--内容区end-->
		       		</div>
		       </div>

@*弹出框start*@

<!-- 审核收支start --->
<div class="popup modify_pop_box edit_box">
	<div class="pop">
        <span class="colse_popbox close-popup">X</span>
    	<h5>@Language.Get("审核收支")</h5>
        <form class="form-inline _mod" style="padding: 5px 5px 5px 30px;" action="post">
            <div class="form-group" style="display: none">
                <label for="ID">@Language.Get("标识")：</label>
                <input type="text" class="form-control" id="_iD" placeholder="@Language.Get("标识")" name="ID">
            </div>
            <div class="form-group" style="display: none">
                <label for="OrderIDs">@Language.Get("订单")：</label>
                <input type="text" class="form-control" id="_orderIDs" placeholder="@Language.Get("订单")" name="OrderIDs">
            </div>
            <div class="form-group" style="display: none">
                <label for="CustomerID">@Language.Get("标识")：</label>
                <input type="text" class="form-control" id="_custID" placeholder="@Language.Get("客户标识")" name="CustomerID">
            </div>

            <div class="form-group">
               <label for="Account">@Language.Get("账户")：</label>
               <select id="mod_accountID" class="form-control list_search" name="Account"></select>
            </div>

            <div class="form-group">
                <label for="Abstract">@Language.Get("操作")：</label>
                <select class="form-control" name="Abstract" id="_abstract" disabled="disabled">
                    <option value="1">@Language.Get("支付全款")</option>
                    <option value="2">@Language.Get("客户充值")</option>
                    <option value="3">@Language.Get("退供应商")</option>
                    <option value="4">@Language.Get("自留变货")</option>
                    <option value="5">@Language.Get("余额提现")</option>
                    <option value="6">@Language.Get("确认到货")</option>
                    <option value="7">@Language.Get("取消到货")</option>
                    <option value="8">@Language.Get("申请收支")</option>
                </select>
            </div>
            <div class="form-group">
                <label for="Type">@Language.Get("类型")：</label> <!-- 1收入 2支出 3定金 4提现-->
                <select class="form-control" name="Type" id="_type" disabled="disabled">
                    <option value="1">@Language.Get("收入")</option>
                    <option value="2">@Language.Get("支出")</option>
                </select>
            </div>
            <div class="form-group">
                <label for="Currency">@Language.Get("币种")：</label> <!-- 1人民币 2美金-->
                <select class="form-control" name="Currency" id="_currency">
                    <option value="1">@Language.Get("人民币")</option>
                    <option value="2">@Language.Get("美金")</option>
                </select>
            </div>
            <div class="form-group">
                <label for="Amount"><b style="color:red;">@Language.Get("交易金额")：</b></label>
                <input type="number" class="form-control" id="_amount" placeholder="@Language.Get("交易金额")" name="Amount">
            </div>
            <div class="form-group">
                <label for="Receivable">@Language.Get("应收/支金额")：</label>
                <input type="number" class="form-control" id="_receivable" placeholder="@Language.Get("应收入/支出金额")" name="Receivable" readonly="readonly">
            </div>
            <div class="form-group">
                <label for="">@Language.Get("差额")：</label>
                <input type="number" class="form-control" id="_bal" placeholder="@Language.Get("差额")" readonly="readonly" name="xx" style="color:red;">
                <p> @Language.Get("(请注意差额数额是否在允许的范围内，否则将会带来财务问题)")</p>
            </div>
            <div class="form-group">
                <label for="ArrivalTime">@Language.Get("到账日期")：</label>
                <div class="list-block" style="margin: 0; width: 70%;">
						<ul>
						    <li>
						      <div class="item-content" style="padding-left: 0;">
						        <div class="item-inner">
						          <div class="item-input">
						            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="@Language.Get("到账日期")" readonly id="_arrivalTime" required="required">
						          </div>
						        </div>
						      </div>
						    </li>
						</ul>
					</div>
            </div>
            <div class="form-group">
                <label for="Others">@Language.Get("人物")：</label>
                <input type="text" class="form-control" id="_others" placeholder="@Language.Get("人物")" name="Others">
            </div>

            <div class="form-group">
                <label for="Purpose">@Language.Get("用途")：</label>
                <select class="form-control" name="Purpose" id="_purpose">
                    <option value="1">@Language.Get("裸钻")</option>
                    <option value="6">@Language.Get("货品")</option>
                    <option value="2">@Language.Get("兑换")</option>
                    <option value="4">@Language.Get("借款")</option>
                    <option value="5">@Language.Get("还款")</option>
                    <option value="7">@Language.Get("耗材")</option>
                    <option value="8">@Language.Get("开支")</option>
                    <option value="9">@Language.Get("押金")</option>
@*                  <option value="3">@Language.Get("杂项")</option>*@
                </select>
            </div>
            <div class="form-group form-group-com">
                <label for="Status">@Language.Get("状态")：</label>
                <label for="tg" style="color:red;"><input type="radio" name="Status" value="1" id="tg" checked="checked" />@Language.Get("通过")&nbsp;&nbsp;&nbsp;</label>
                <label for="zf"><input type="radio" name="Status" value="-1" id="zf"/>@Language.Get("作废")</label>
                  <!--</label>-->
            </div>
        	<div class="form-group remarks-group">
                <label for="Remarks">@Language.Get("申请备注")：</label>
                <textarea class="form-text" id="_remarks" placeholder="@Language.Get("申请备注")" name="Remarks" cols="65" disabled="disabled"></textarea>
            </div>
            <div class="form-group remarks-group">
                <label for="Comments">@Language.Get("审核备注")：</label>
                <textarea class="form-text" id="_comments" placeholder="@Language.Get("审核备注")" name="Comments" cols="65"></textarea>
            </div>
            <div class="confirm">
                <input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")" name="x"/>
	            <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>
            </div>
        </form>
    </div>
</div>
<!-- 审核收支end --->

    <!-- 添加收支start -->
     <div class="popup modify_pop_box add_pop_box">
	     <div class="pop">
            <span class="colse_popbox close-popup">X</span>
            <h5>@Language.Get("申请收支")</h5>
            <form class="form-inline _add" style="padding: 5px 5px 5px 30px;" action="post">

                <div class="">
                    <label style="vertical-align: top;">@Language.Get("账户")：</label>
                    <div class="account-radio" id="_bankID1">
                    </div>
                </div>

                <div class="">
                    <label for="Abstract">@Language.Get("操作")：</label>
                    <input type="radio" name="Abstract" value="8" id="sq" checked="checked" /><label for="sq">@Language.Get("申请")&nbsp;</label>
                </div>
                <div>
                    <label for="Type">@Language.Get("收支")：</label>
                    <label class="checkbox-inline">
                        <input type="radio" name="Type" value="2" id="zc" /><label for="zc">@Language.Get("支出") -&nbsp;</label>
                        <input type="radio" name="Type" value="1" id="sr"/><label for="sr">@Language.Get("收入") +&nbsp;</label>
                    </label>
                </div>
                <div class="form-group">
                    <label for="Amount"><b style="color:red;">@Language.Get("交易金额")：</b></label>
                    <input type="number" class="form-control" id="amount" placeholder="@Language.Get("交易金额")" name="Amount">
                </div>
                <div class="form-group">
                    <label for="Currency">@Language.Get("币种")：</label>
                    <select class="form-control" name="Currency" id="currency">
                        <option value="1">@Language.Get("人民币")</option>
                        <option value="2">@Language.Get("美元")</option>
                    </select>
                </div>
                <div class="form-group">
                    <label for="ArrivalTime">@Language.Get("到款")：</label>
                     <div class="list-block" style="margin: 0; width: 70%;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="@Language.Get("到款日期")" readonly id="arrivalTime" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
                </div>
                <div class="form-group">
                    <label for="Purpose">@Language.Get("用途")：</label>
                    <select class="form-control" name="Purpose" id="purpose">
                        <option value="1">@Language.Get("裸钻")</option>
                        <option value="6">@Language.Get("货品")</option>
                        <option value="2">@Language.Get("兑换")</option>
                        <option value="4">@Language.Get("借款")</option>
                        <option value="5">@Language.Get("还款")</option>
                        <option value="7">@Language.Get("耗材")</option>
                        <option value="8">@Language.Get("开支")</option>
                        <option value="9">@Language.Get("押金")</option>
@*                        <option value="3">@Language.Get("杂项")</option>*@
                    </select>
                </div>
                <div class="form-group">
                    <label for="Others">@Language.Get("人物")：</label>
                    <input type="text" class="form-control" id="others" placeholder="@Language.Get("人物")" name="Others">
                </div>
                 <div class="form-group">
                    <label for="Status">@Language.Get("状态")：</label>
                    <select class="form-control" name="Status" id="status" disabled="disabled">
                        <option value="1">@Language.Get("已审核")</option> <!-- 1已审核 -1已作废 -->
                    </select>
                </div>
                <div class="remarks-group">
                    <label for="Remarks">@Language.Get("申请备注")：</label>
                    <textarea id="remarks" name="Remarks" placeholder="@Language.Get("申请备注")" class="form-text" cols="65"></textarea>
                </div>
                <div class="confirm">
		            <input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")"  />
		            <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>
                </div>
            </form>
        </div>
    </div>
    <!-- 添加收支end -->

    <!-- 复核start-->
    <div class="popup pop_bg_box" id="review_box">
        <div class="pop">
            <span class="colse_popbox close-popup">X</span>
            <h5>@Language.Get("复核")</h5>
            <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_review">
            	<input type="text" name="ID" id="form_id" style="display: none;" />
                <div class="form-group">
                	<label for="reviewRemarks" style="vertical-align: top;">@Language.Get("复核备注"):</label>
                    <textarea class="form-control" id="reviewRemarks" placeholder="@Language.Get("复核备注")"  name="Comments" style="width: 60%;height: 50px;"></textarea>
                </div>
                <div class="confirm">
                	<input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")"  style="margin-left: 20px;" />
                	<input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"  />
                </div><!-- onclick="ReturnOrders();" -->
            </form>
        </div>
    </div>
    <!--复核end -->
         @*筛选start*@
        <div class="popup user_filter_box">
    		<div class="pop">
	        <span class="colse_popbox close-popup">X</span>
	        <h5>@Language.Get("审核筛选")</h5>
                <form class="form-finance-filtrate">
                	 <div class="form-group">
	                	<label>@Language.Get("客户")：</label>
	                    <datalist id="_customerCodes" class="form-control list_search" style="display:none;"></datalist> <!--  -->
	                    <input type="text" id="_customerCs" list="_customerCodes" class="form-control" placeholder="@Language.Get("客户")" name="_customerCs" />
                     </div>
	            	<!--<div class="form-group">
	                    <label>@Language.Get("客户名字")：</label>
	                    <input class="form-control" type="text" placeholder="@Language.Get("客户名字")" id="_customerRealName" />
                     </div>-->
	            	<div class="form-group">
	                    <label>@Language.Get("支出/收入")：</label>
	                    <input class="form-control" type="text" placeholder="@Language.Get("支出/收入金额")" id="_amt" />
                    </div>
                    <div class="form-group">
	                    <label>@Language.Get("人物")：</label>
                    	<input class="form-control" type="text" placeholder="@Language.Get("人物")" id="sel_others" />
	            	</div>
	            	<div class="form-group">
	                    <label>@Language.Get("申请人")：</label>
	                    <input class="form-control" type="text" placeholder="@Language.Get("申请人")" id="_saleRealName" />
                    </div>
	            	<div class="form-group">
	                    <label>@Language.Get("账户")：</label>
	                    <select id="sel_accountID" class="form-control list_search"></select>
                    </div>
	            	<div class="form-group">
	                    <label>@Language.Get("交易类型")：</label>
	                    <select class="form-control list_search" id="sel_type">
	                        <option value="">@Language.Get("交易类型")</option>
	                        <option value="1">@Language.Get("收入")</option>
	                        <option value="2">@Language.Get("支出")</option>
	                    </select>
	                </div>
	            	<div class="form-group">
	                    <label>@Language.Get("摘要")：</label>
	                    <select class="form-control list_search" id="sel_abstract">
	                        <option value="">@Language.Get("摘要")</option>
	                        <option value="0">@Language.Get("订单付款")</option>
	                        <option value="1">@Language.Get("支付全款")</option>
	                        <option value="2">@Language.Get("客户充值")</option>
	                        <option value="3">@Language.Get("退供应商")</option>
	                        <option value="4">@Language.Get("自留变货")</option>
	                        <option value="5">@Language.Get("余额提现")</option>
	                        <option value="6">@Language.Get("确认到")货</option>
	                        <option value="7">@Language.Get("取消到货")</option>
	                        <option value="8">@Language.Get("申请收支")</option>
	                        <option value="9">@Language.Get("兑换美金")</option>
	                        <option value="10">@Language.Get("直接充值")</option>
	                    </select>
                    </div>
                    <div class="form-group">
	                    <label>@Language.Get("用途")：</label>
	                    <select class="form-control list_search" id="sel_purpose">
	                        <option value="">@Language.Get("用途")</option>
	                        <option value="1">@Language.Get("裸钻")</option>
	                        <option value="6">@Language.Get("货品")</option>
	                        <option value="2">@Language.Get("兑换")</option>
	                        <option value="4">@Language.Get("借款")</option>
	                        <option value="5">@Language.Get("还款")</option>
	                        <option value="7">@Language.Get("耗材")</option>
	                        <option value="8">@Language.Get("开支")</option>
	                        <option value="9">@Language.Get("押金")</option>
	@*                        <option value="3">@Language.Get("杂项")</option>*@
	                    </select>
	                </div>
	            	<div class="form-group">
	                    <label>@Language.Get("币种")：</label>
	                   <select class="form-control list_search" id="sel_currency">
	                        <option value="">@Language.Get("币种")</option>
	                        <option value="1" class="CurrentRMB">@Language.Get("人民币")</option>
	                        <option value="2" class="CurrentUSD">@Language.Get("美金")</option>
	                    </select>
                    </div>
	            	<div class="form-time form-time-two">
	                    <label>@Language.Get("申请时间")：</label>
	                    <div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="DeliveryTime" placeholder="@Language.Get("申请时间")" readonly id="screatetime" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
						<span>@Language.Get("至")</span>
						<div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="DeliveryTime" placeholder="@Language.Get("申请时间")" readonly id="ecreatetime" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
                    </div>

                    <div class="form-time form-time-two">
	                    <label>@Language.Get("审核时间")：</label>
	                    <div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="DeliveryTime" placeholder="@Language.Get("审核时间")" readonly id="supdatetime" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
						<span>@Language.Get("至")</span>
						<div class="list-block" style="margin: 0;">
							<ul>
							    <li>
							      <div class="item-content" style="padding-left: 0;">
							        <div class="item-inner">
							          <div class="item-input">
							            <input type="text" class="date_input time_input" name="DeliveryTime" placeholder="@Language.Get("审核时间")" readonly id="eupdatetime" required="required">
							          </div>
							        </div>
							      </div>
							    </li>
							</ul>
						</div>
                   </div>
                    <div class="confirm">
	                	<input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")"/>
		            	<input type="button" class="btn btn-danger supbtn" id="confirm_btn"  value="@Language.Get("确定")"/>   <!--onclick="LoadUser()"-->
            		</div>
                </form>
	    	</div>
	    </div>
    	@*筛选end*@

        <!-- 订单详情框start-->
    <div class="popup detail_pop_box">
    	<div class="pop">
	        <span class="colse_popbox close-popup">X</span>
            <h5>@Language.Get("订单详情")</h5>
            <div class="order-detail-info">
                <table class="product_table" id="detail">
                    <thead>
                        <tr>
                            <th style='width:8%'>@Language.Get("序号")</th>
                            <th style='width:8%'>@Language.Get("形状")</th>
                            <th style='width:8%'>@Language.Get("重量")</th>
                            <th style='width:13%'>@Language.Get("证书")</th>
                            <th style='width:10%'>@Language.Get("卖")RMB</th>
                            <th style='width:10%'>@Language.Get("卖")USD</th>
                            <th style='width:25%'>@Language.Get("下单")</th>
                            <th style='width:8%'>@Language.Get("支付")</th>
                            <th style='width:10%'>@Language.Get("业务")</th>
                        </tr>

                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
     <!-- 订单详情框end-->

    @*弹出框end*@

			</div>
		</div>
    </body>   
</html>
@Html.Partial("commonTeamJs")
<script src="~/Js/jquery.validate.min.js"></script>
<script src="~/js/team/flow.js?v=@Wholesaler.Common.Version.Get" type="text/javascript"></script>



